package szk.exam.dao.impl;
/*
 * @Description:
 * @Author: 山志凯
 * @Date: 2021-06-16
 * @Time: 08:53
 */

import szk.exam.dao.DbDao;
import szk.exam.pojo.Student;

import java.sql.SQLException;
import java.util.List;

public class StuDaoImpl extends DbDaoImpl<Student> {
    public Student findByStuName(String userName) throws SQLException {
        String sql="select * from student where stuName=?";
        return find(sql,userName);
    }
    public List<Student> findAll() throws SQLException {
        String sql="select * from student";
        return findAll(sql);
    }
}
